#!/usr/bin/env node
import { program } from 'commander'

program
  .helpOption('-h, --help', '查看帮助')
  .version(require('../package.json').version, '-v, --version', '查看版本')
  .helpCommand(false)

program
  .command('ls')
  .description('查询 netsh')
  .action(() => require('./ls/index'))

program
  .command('add')
  .description('添加端口映射')
  .action(() => require('./add/index'))

program
  .command('remove')
  .description('删除端口映射')
  .arguments('<index>')
  .action(() => require('./remove/index'))

program.parse(process.argv)
